<?php

namespace app\common\controller;


trait PublicApp
{
    protected $controller;
    protected $model;


    public function initialize()
    {
        $this->controller = request()->controller();
        $this->model      = '\\app\\common\\model\\' . $this->controller;
        $this->assign('controller', strtolower($this->controller));
    }

}
